public class StringDemo2 {
    static void main() {
        String id = "21331336859286937";
        String year = id.substring(6,10);
        String month = id.substring(10,12);
        String day = id.substring(12,14);
        System.out.println("人物信息为：");
        System.out.println("出生年月日"+year+"年"+month+"月"+day+"日");

        char gender = id.charAt(16);
    }
}
